<?php
$link = mysqli_connect('127.0.0.1','root','','stock');
$res = mysqli_query($link, 'select data_time from record group by data_time order by data_time desc limit 2');
$date = mysqli_fetch_all($res);
$today = $date[1][0];
$res = mysqli_query($link, " call lb($today) ");
//var_dump(mysqli_fetch_all($res));

